﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BT_BieuThuc_Nhom13.Converter
{
    public class InfixConverter : MyConverter
    {
        protected static MyConverter Instance;
        protected InfixConverter()
        {
            Name = "Infix";
        }

        public override List<OrderIndex> GetListFormat()
        {
            if (lstOrder == null)
            {
                lstOrder = new List<OrderIndex>();
                lstOrder.Add(OrderIndex.FirstNumber);
                lstOrder.Add(OrderIndex.Operator);
                lstOrder.Add(OrderIndex.SecondNumber);
            }

            return lstOrder;
        }

        public static MyConverter GetInstance()
        {
            if (Instance == null)
            {
                Instance = new InfixConverter();
            }

            return Instance;
        }
    }
}
